package com.sw.basedemo.consumer;

import com.sw.basedemo.api.IHelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ConsumerComponent  {
    /**
     * 引入
     */
    @Reference
    private IHelloService helloService;

    /**
     * 调用接口
     * @param world
     * @return
     */
    public String sayHello(String world){
        return helloService.sayHello(world);
    }
}
